import React, { Component } from 'react';


export default class NavigatorUtils extends React.Component {

    static resetGoBack(navigation){
        navigation.goBack();
    }

    static resetToRoute(params,key){
        const {navigation} = params
        if (!navigation){
            console.warn('navigation can not be null');
            return
        }
        navigation.navigate(key,{...params});
    }

}